package com.baihuabooks.scoresys.common;

import java.io.IOException;
import java.util.Properties;

/**
 * Created by Thinkpad on 2016/5/17 0017.
 */
public class Config {

    private static Properties properties = new Properties();
    public static void init() {
        try {
            properties.load(Thread.currentThread()
                    .getContextClassLoader()
                    .getResourceAsStream("sys.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String get(String key) {
        return properties.getProperty(key);
    }
}
